<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkIMMulticontext</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 2 Reference Manual">
<link rel="up" href="MiscObjects.html" title="Miscellaneous">
<link rel="prev" href="GtkIMContextSimple.html" title="GtkIMContextSimple">
<link rel="next" href="GtkSizeGroup.html" title="GtkSizeGroup">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkIMContextSimple.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MiscObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 2 Reference Manual</th>
<td><a accesskey="n" href="GtkSizeGroup.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkIMMulticontext.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#GtkIMMulticontext.description" class="shortcut">Description</a>
                   | 
                  <a href="#GtkIMMulticontext.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="GtkIMMulticontext"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkIMMulticontext.top_of_page"></a>GtkIMMulticontext</span></h2>
<p>GtkIMMulticontext — An input method context supporting multiple, loadable input methods</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkIMMulticontext.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="GtkIMMulticontext.html#GtkIMMulticontext-struct" title="struct GtkIMMulticontext">GtkIMMulticontext</a>;
<a class="link" href="GtkIMContext.html" title="GtkIMContext"><span class="returnvalue">GtkIMContext</span></a> *      <a class="link" href="GtkIMMulticontext.html#gtk-im-multicontext-new" title="gtk_im_multicontext_new ()">gtk_im_multicontext_new</a>             (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkIMMulticontext.html#gtk-im-multicontext-append-menuitems" title="gtk_im_multicontext_append_menuitems ()">gtk_im_multicontext_append_menuitems</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menushell</code></em>);
const <span class="returnvalue">char</span> *        <a class="link" href="GtkIMMulticontext.html#gtk-im-multicontext-get-context-id" title="gtk_im_multicontext_get_context_id ()">gtk_im_multicontext_get_context_id</a>  (<em class="parameter"><code><a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkIMMulticontext.html#gtk-im-multicontext-set-context-id" title="gtk_im_multicontext_set_context_id ()">gtk_im_multicontext_set_context_id</a>  (<em class="parameter"><code><a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *context_id</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GtkIMMulticontext.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----<a class="link" href="GtkIMContext.html" title="GtkIMContext">GtkIMContext</a>
         +----GtkIMMulticontext
</pre>
</div>
<div class="refsect1">
<a name="GtkIMMulticontext.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="GtkIMMulticontext.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkIMMulticontext-struct"></a><h3>struct GtkIMMulticontext</h3>
<pre class="programlisting">struct GtkIMMulticontext;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-im-multicontext-new"></a><h3>gtk_im_multicontext_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkIMContext.html" title="GtkIMContext"><span class="returnvalue">GtkIMContext</span></a> *      gtk_im_multicontext_new             (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-im-multicontext-append-menuitems"></a><h3>gtk_im_multicontext_append_menuitems ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_im_multicontext_append_menuitems
                                                        (<em class="parameter"><code><a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menushell</code></em>);</pre>
<p>
Add menuitems for various available input methods to a menu;
the menuitems, when selected, will switch the input method
for the context and the global default input method.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>menushell</code></em> :</span></p></td>
<td>a <a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-im-multicontext-get-context-id"></a><h3>gtk_im_multicontext_get_context_id ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        gtk_im_multicontext_get_context_id  (<em class="parameter"><code><a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a> *context</code></em>);</pre>
<p>
Gets the id of the currently active slave of the <em class="parameter"><code>context</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the id of the currently active slave</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-im-multicontext-set-context-id"></a><h3>gtk_im_multicontext_set_context_id ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_im_multicontext_set_context_id  (<em class="parameter"><code><a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *context_id</code></em>);</pre>
<p>
Sets the context id for <em class="parameter"><code>context</code></em>.
</p>
<p>
This causes the currently active slave of <em class="parameter"><code>context</code></em> to be
replaced by the slave corresponding to the new context id.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext"><span class="type">GtkIMMulticontext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context_id</code></em> :</span></p></td>
<td>the id to use</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>